Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODPart


RedoAction

The RedoAction method should redo the specified action.

void RedoAction (in ODActionData actionState);
actionState
A byte array whose buffer contains the data previously logged by this part to allow it to redo the action.
DISCUSSION
A part may need to give the user the capability of repeating the effects of recently undone commands. OpenDoc calls this method when the user chooses to redo an action of this part.

Your part is responsible for notifying the clipboard whenever a Cut, Copy, or Paste operation is done, undone, or redone. If your part's RedoAction method is called, it should remove the object from its content model and notify the clipboard that the cut was redone.

OVERRIDING
When you subclass ODPart, you can override this method. Your override method must not call its inherited method; that is, your override method must implement this method's functionality completely.

EXCEPTIONS
kODErrDoesNotUndo
The specified action is not an undo action of this part.
SEE ALSO
The ODActionData type (page 898).
The ODPart::UndoAction method (page 549).
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Undo, Redo" on page 250 in OpenDoc Programmer's Guide.
"Implementing Undo" on page 258 in OpenDoc Programmer's Guide.
"Redoing an Action" on page 261 in OpenDoc Programmer's Guide.
"Undo for Clipboard" on page 354 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help